home *** CD-ROM | disk | FTP | other *** search
- /*
- File: ConsoleWindow.h
-
- Contains: Sample code for Language Analysis Manager.
-
- Version: Technology: System 8
- Release: Daruma Developer Release 1
-
- Copyright: 1998 by Apple Computer, Inc., all rights reserved
-
- Contact: daruma@apple.com
-
- */
-
-
- #ifndef __CONSOLEWINDOW__
- #define __CONSOLEWINDOW__
-
- #include <Windows.h>
- #include <Events.h>
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- // ========================================================================================
- // Types
- // ========================================================================================
-
- typedef struct OpaqueConsoleWindowRec *ConsoleWindowRef;
-
-
- // ========================================================================================
- // Function Prototypes
- // ========================================================================================
-
- extern OSStatus GetNewConsoleWindow( SInt16 resID, WindowRef behind, StringPtr fontName, SInt16 fontSize, ConsoleWindowRef *console );
- extern OSStatus NewConsoleWindow( const Rect *windRect, StringPtr title, Boolean visible, SInt16 wDefProcID, WindowRef behind, Boolean goAwayFlag, long refcon, StringPtr fontName, SInt16 fontSize, ConsoleWindowRef *console );
- extern void DisposeConsoleWindow( ConsoleWindowRef console );
- extern Boolean ProcessConsoleWindowEvent( EventRecord *theEvent, Boolean *closed );
- extern void SetConcoleWindowFont( ConsoleWindowRef console, StringPtr fontName, Boolean redraw );
- extern void SetConcoleWindowFontSize( ConsoleWindowRef console, SInt16 fontSize, Boolean redraw );
- extern void PutPStringConsoleWindow ( ConsoleWindowRef console, StringPtr theString );
- extern void PutCStringConsoleWindow ( ConsoleWindowRef console, const char *theString );
- extern void ClearConsoleWindowContent( ConsoleWindowRef console );
- extern ConsoleWindowRef GetConsoleWindowFromWindow( WindowRef window );
- extern WindowRef GetWindowFromConsoleWindow( ConsoleWindowRef console);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* __CONSOLEWINDOW__ */
-
-